#!/usr/bin/env python3
# -*- coding: utf-8 -*-

class Student(object):
    @property
    def score(self):
        return self._score
    @score.setter
    def score(self,value):
        if not isinstance(value,int):
            raise ValueError('score must be an integer')
        if value < 0 or value > 100:
            raise ValueError('score must between 0-100')
        self._score = value
# s = Student()
# s.score = 80
# print('s.score=',s.score)
# s.score = 99
# s.score = '1000'

class Screen(object):
    """docstring for Screen."""
    @property
    def weight(self):
        return self._weight
    @weight.setter
    def weight(self,value):
        if not isinstance(value,int):
            raise ValueError('score must be an integer')
        if value < 0 or value > 100:
            raise ValueError('score must between 0-100')
        self._weight = value
    @property
    def height(self):
        return self._height
    @height.setter
    def height(self,value):
        if not isinstance(value,int):
            raise ValueError('score must be an integer')
        if value < 0 or value > 100:
            raise ValueError('score must between 0-100')
        self._height = value
    @property
    def resolution(self):
        return self._height * self._weight

s = Screen()
s.weight = 99
s.height = 99
print('s.weight=',s.weight)
print('s.height=',s.height)
print('s.resoultion=',s.resolution)
